"""
编写程序，利用生成器推导式生成包含 n 个整数元素的元组，
每个元素值不大于 m，并过滤掉偶数整数，并输出
"""
import random
n = eval(input("n:"))
m = eval(input("m:"))
def judge(num):
    if num % 2 == 0:
        return False
    return True
g = tuple((random.randint(0,m) for i in range(n)))
answer = tuple(filter(judge,g))
print(answer)
